home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
flip.arc
/
FLIP.DOC
< prev
next >
Wrap
Text File
|
1988-06-21
|
5KB
|
115 lines
FLIP.COM
This assembly language routine allows the user to change
various system settings as well as the state of various
"toggle" keys via a DOS command.
Syntax:
FLIP |Num | |ON |
|CAp | |OFf |
|Scroll| |Toggle|
|Insert|
or
FLIP |Mono | |80|
|COlor| |40|
or
FLIP Prtsc
or
FLIP Logging |ON |
|OFf |
|Toggle|
or
FLIP EJect
or
FLIP EGa |25|
|43|
or
FLIP LPTn |PRTn|
|LPTn|
or
FLIP CLear
In the above, all parameters can be abbreviated to
the uppercase portion of the parameter.
NUM indicates to change the Num Lock state, SCROLL
indicates to change the Scroll Lock state, INSERT
indicates to change the Insert state and CAP indicates
to change the Caps Lock state. ON indicates to turn the
respective states on; OFF, turn them off; and TOGGLE to
reverse them from their current settings.
The MONO and COLOR parameters flip between the MONO and COLOR
display adapter cards on systems so equipped: 40 or 80 defines
the number of characters per line if the COLOR parameter is
used: 40 or 80 is not necessary (nor respected) for MONO.
The PRTSC parameter has the same effect as pushing down the
shift-PrtSc keys (producing a screen dump).
The LOGGING parameter has the same effect as pushing down the
ctrl-PrtSc keys, which turns logging on in DOS. LOGGING ON
will turn logging on (that is, text output that appears on
the display will also be printed) if logging is not already
active. LOGGING OFF will turn logging off if it is not already
off. LOGGING TOGGLE will flip the current state.
The EJECT parameter sends a form feed (decimal 12) to the
standard printer device.
The EGA parameter sets the number of lines on the screen
on systems equipped with EGA adapters and displays.
The LPT parameter changes the printer configuration.
For example, FLIP LPT1 PRT2 changes the printer configuration
such that commands that print on LPT1 will cause printing to
to take place on the printer physically connected to printer port 2.
Commands that print on LPT2 will also print on the printer physically
connected to port 2. Executing the command FLIP LPT1 PRT1
again will restore the printers to their normal configuration.
When FLIP changes printer assignments, it resets the BIOS
printer timeout for that printer to the default (20). Note
also that FLIP uses real hardware port address for assignment to
the LPTn selected consistent with BIOS assignments at system
initialization.
Using LPTn for the second parameter causes FLIP to change the
logical assignments. Thus, FLIP LPT1 LPT2 causes the system
route all output directed to LPT1 to LPT2 and output directed to
LPT2 to LPT1. Executing FLIP LPT1 LPT2 will reset this assignment.
This command sequence may be useful when other programs have already
supplied addresses, other than the standard BIOS addresses, to the
BIOS printer table. FLIP maintains the printer timeout when
executed this way. Be aware, however, that if multiple
FLIP LPTn LPTn commands are issued, they must be reissued in the
reverse order they were originally issued if the prior printer
configuration is to be restored. For example, if the commands:
FLIP LPT1 LPT2
FLIP LPT2 LPT3
were issued, (making output for LPT1 print on LPT3, output for
LPT2 print on LPT1, and output for LPT3 print on LPT2) the commands:
FLIP LPT2 LPT3
FLIP LPT1 LPT2
would need to be issued, in that sequence, to restore the normal
assignments.
FLIP CLEAR will simply clear the display. Unlike the DOS CLS
command, it will maintain the current screen state (video
attributes as well as the border).
Copyright (c) 1982, 1984, 1987 Thomas J. Foth
Rights granted to distribute this routine with the inclusion of
this notice but not for profit.
Author makes no warranty, expressed or implied, as to the
correct nature and operation of this software.